import Vue from 'vue'
import App from '@/App'
import store from '@/store'
import MpvueRouterPatch from 'mpvue-router-patch'
import MpvueHack from '@/utils/hack'

import http from '@/http/api'
import native from '@/utils/wxApi/native'
import tip from '@/utils/tip'

import './styles/index.scss';

Vue.prototype.$http = http
Vue.prototype.$native = native
Vue.prototype.$tip = tip

Vue.use(MpvueRouterPatch)
Vue.use(MpvueHack)
Vue.config.productionTip = false

const app = new Vue({
    mpType: 'app',
    store,
    ...App
})
app.$mount()